const Model = {
    namespace: 'queryParams',
    state: {
    },
    effects: {
        *saveQueryParams({ payload }, { call, put }) {
            yield put({
                type: 'setQueryParams',
                payload: payload,
            });
        }
    },
    reducers: {
        setQueryParams(state, action) {
            return { ...state, [action.payload.name]: action.payload.params };
        },
    },
};
export default Model;